//
//  XMPicQualityController.m
//  XMWeibo
//
//  Created by chi on 14-9-2.
//  Copyright (c) 2014年 xiaoming. All rights reserved.
//

#import "XMPicQualityController.h"

@interface XMPicQualityController ()

@end

@implementation XMPicQualityController

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        // Custom initialization
    }
    return self;
}

- (void)viewDidLoad
{
    [super viewDidLoad];

    // 添加分组
    [self setupGroup0];
    [self setupGroup1];
}

- (void)setupGroup0
{
    XMCheckGroupInfo *group0 = [XMCheckGroupInfo group];
    [self.dataList addObject:group0];
    group0.header = @"上传图片质量";
    
    XMCheckSettingItem *high = [XMCheckSettingItem cellItemWithTitle:@"高清" subTitle:@"(建议在wifi或3G网络使用)" icon:nil];
    high.isChecked = YES;
    
    XMCheckSettingItem *normal = [XMCheckSettingItem cellItemWithTitle:@"普通" subTitle:@"(上传速度快、省流量)" icon:nil];
    
    group0.cellItems = @[high, normal];
    
//    group0.source = self.source;
}

- (void)setupGroup1
{
    XMCheckGroupInfo *group1 = [XMCheckGroupInfo group];
    group1.header = @"下载图片质量";
    [self.dataList addObject:group1];
    
    XMCheckSettingItem *high = [XMCheckSettingItem cellItemWithTitle:@"高清" subTitle:@"(建议在wifi或3G网络使用)" icon:nil];
    
    XMCheckSettingItem *normal = [XMCheckSettingItem cellItemWithTitle:@"普通" subTitle:@"(下载传速度快、省流量)" icon:nil];
    normal.isChecked = YES;
    
    group1.cellItems = @[high, normal];
    
//    group1.source = self.source;
}

@end
